<% title "Leave Details" %>
<%= render :partial => 'breadcrumbs' %>

<table class="admin_listing">
  <tr>
    <th>Leave</th>
    <th>Date</th>
    <th>Year</th>
    <th>Month</th><th></th><th></th><th></th>
  </tr>

<% @leave_details.each do |leave_detail| %>
  <tr>
    <td><%=h leave_detail.leave_id %></td>
    <td><%=h leave_detail.date %></td>
    <td><%=h leave_detail.year %></td>
    <td><%=h leave_detail.month %></td>
    <td><%= link_to 'Show', leave_detail %></td>
    <td><%= link_to 'Edit', edit_leave_detail_path(leave_detail) %></td>
    <td><%= link_to 'Destroy', leave_detail, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New leave_detail', new_leave_detail_path %>